<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
    <title>Document</title>
    <style>
        .one{
            width: 100px;
            height: 100px;
            background-color: hotpink;
        }
        .two{
            width: 150px;
            height: 150px;
            background-color: aqua;
        }
        .three{
            width: 200px;
            height: 200px;
            background-color: blue;
        }
        .active{
            color: yellowgreen;
        }
    </style>
</head>
<body>
    <div id="app" v-bind:class="className">
        <h3 :class="isActive?'active':''">天行健,君子当自强不息</h3>
        <h3 :class={active:isActive}>地势坤，君子当厚德载物</h3>
    </div >
    <script>
        new Vue({
            data(){
                return{
                    className:{
                        one:false,
                        two:true,
                        three:false
                    },
                    isActive:true
                }
            }
        }).$mount("#app")

    </script>
</body>
</html>